/**
 * 开发环境
 */
;(function () {
  window.SITE_CONFIG = {}

  let commonUrl = "localhost";//"172.250.210.32";
  // let commonUrl = "172.250.210.32";//"172.250.210.32";
  // let componentUrl = "172.250.210.21";
  let componentUrl = "localhost";

  // 本地接口调用
  // window.SITE_CONFIG['baseUrl'] = 'http://172.31.10.240:8881/portal'; // 门户登录接口
  // window.SITE_CONFIG['adornHardWareUrl'] = 'http://' + componentUrl + ':8882/component'; // 安全规则接口
  // window.SITE_CONFIG['preBaseUrl'] = 'http://localhost:8883/resources'; // 安全资源接口
  // window.SITE_CONFIG['endogenousBaseUrl'] = 'http://localhost:8885/endogenous'; // 内生安全服务接口
  // window.SITE_CONFIG['portalBaseUrl'] = 'http://localhost:8881/portal';

  // 线上接口调用

  window.SITE_CONFIG['baseUrl'] = 'http://'+commonUrl+':8881/portal';
  window.SITE_CONFIG['adornHardWareUrl'] = 'http://'+componentUrl+':8882/component';
  window.SITE_CONFIG['preBaseUrl'] = 'http://'+commonUrl+':8883/resources';
  window.SITE_CONFIG['endogenousBaseUrl'] = 'http://'+commonUrl+':8885/endogenous';
  window.SITE_CONFIG['portalBaseUrl'] = 'http://'+commonUrl+':8881/portal';


  // cdn地址 = 域名 + 版本号
  window.SITE_CONFIG['domain'] = './' // 域名
  window.SITE_CONFIG['version'] = ''   // 版本号(年月日时分)
  window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version
})();
